package com.lvhx.springboot.callservice;

import com.lvhx.springboot.callservice.dto.UserDeleteReponse;
import com.lvhx.springboot.callservice.dto.UserDeleteRequest;
import com.lvhx.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;

public class UserDeleteService extends AbstractBaseService {
    @Autowired
    private UserMapper userMapper;

    public UserDeleteReponse execute(UserDeleteRequest request){

        System.out.println("**************UserDeleteService");
        Long id = request.getId();
        userMapper.deleteByPrimaryKey(id);
        UserDeleteReponse reponse = new UserDeleteReponse();
        return reponse;
    }
}
